package com.imoney.payment.trade.common;

import com.imoney.payment.common.BaseCode;

/**
 * 结果返回编码原则 正常业务为正 如10000 异常业务为负-10000 1 开头为订单使用
 * 
 * @author 411086
 * 
 */
public class InfoCode extends BaseCode {

	// 已经冲正
	public static final int TRADE_REVERSED = -10001;

	// 交易关闭
	public static final int TRADE_CLOSED = -10002;

	// 交易订单处理失败
	public static final int TRADE_FAILURE = -10003;

	// 修改交易状态失败
	public static final int TRADE_STATUES_FAILURE = -10004;

	// 付款失败
	public static final int PAY_FAILURE = -10005;

	// 账务处理异常失败
	public static final int ACCOUNT_FAILURE = -10006;

	// 数据库操作异常
	public static final int DB_EXCEPTION = -10016;

	// 业务逻辑异常
	public static final int SERVICE_EXCEPTION = -10017;

	// 网络异常
	public static final int OTHERS_EXCEPTION = -10018;

	// 业务正在处理，请不要重复提交！
	public static final int HANDLING_EXCEPTION = -10019;

	// 必填项为空
	public static final int PARAM_IS_NULL = -11001;

	// 账号不正常
	public static final int ACT_NOT_NORMAL = -11002;

	// 参数过长
	public static final int PARAM_INVALID_LONG = -11003;

	// 参数格式不正确
	public static final int PARAM_INVALID_FORMAT = -11004;

	// 外部订单号不存在，在冲账会进行检查
	public static final int OUTBIZNO_ISNOT_EXIST = -11005;

	// 支付订单不存在，在冲账会进行检查
	public static final int PAYORDER_ISNOT_EXIST = -11006;

	// 账号余额不足
	public static final int ACT_BALANCE_NOTENOUGH = -12001;

	// 同时间有两笔相同订单
	public static final int SAME_TRADE_NO = -12002;

	// 密码不正确
	public static final int INVALID_PASSWORD = -12003;

	// 账号已经被注销
	public static final int ACT_CANCELED = -12004;

	// 账号已经冻结,不能再支付
	public static final int ACT_FREEZE_INVALID_PAY = -12004;

}
